POV-Ray : Newsgroups : povray.general : Texture for "X-ray" type image : Re: Texture for "X-ray" type image Server Time
30 Jul 2024 14:23:51 EDT (-0400)
  Re: Texture for "X-ray" type image  
From: uekstrom
Date: 12 Dec 2008 09:35:00
Message: <web.4942762f5c4bb01a9c3fc0810@news.povray.org>
Thanks, it worked fine with the ios and an appropriate color_map! (See
http://dustyattic.org/pool/orbitals.png for a simple example)

I used the texture below. It didn't look very good with fewer entries in the
color map.

#declare gam = 4;
#declare xray = texture{
 pigment {
  aoi
         color_map {
          [0.00 color rgbt <1,1,1,1-pow(0.0,gam)/pow(0.5,gam)> ]
          [0.05 color rgbt <1,1,1,1-pow(0.05,gam)/pow(0.5,gam)> ]
          [0.10 color rgbt <1,1,1,1-pow(0.10,gam)/pow(0.5,gam)> ]
          [0.15 color rgbt <1,1,1,1-pow(0.15,gam)/pow(0.5,gam)> ]
          [0.20 color rgbt <1,1,1,1-pow(0.20,gam)/pow(0.5,gam)> ]
          [0.25 color rgbt <1,1,1,1-pow(0.25,gam)/pow(0.5,gam)> ]
          [0.30 color rgbt <1,1,1,1-pow(0.30,gam)/pow(0.5,gam)> ]
          [0.35 color rgbt <1,1,1,1-pow(0.35,gam)/pow(0.5,gam)> ]
          [0.40 color rgbt <1,1,1,1-pow(0.40,gam)/pow(0.5,gam)> ]
          [0.45 color rgbt <1,1,1,1-pow(0.45,gam)/pow(0.5,gam)> ]
          [0.50 color rgbt <1,1,1,1-pow(0.50,gam)/pow(0.5,gam)> ]
          [1.00 color rgbt <1,1,1,1> ]
  }
 }
 finish{ ambient 1 }
}

Ulf


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.